# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2023-06-05
desc: 
sample: 
"""
import random

number1 = random.randrange(1, 100)
print(number1)
#健壮性
while True:
    number2 = input("请输入数字。。。")
    try:
        if number1 == int(number2):
            print("猜对了")
            break
        else:
            print("不匹配，请继续输入")
    except:
        print("输入异常，请输入数字")
